<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!--设定屏幕比例-->
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>二维码支付测试</title>
    <!--引入vant样式文件-->
    <link rel="stylesheet" href="css/vant.css"/>
</head>
<body>
<div id="zfb">
    <van-notice-bar
            left-icon="volume-o"
            text="本页面仅为支付宝新版支付演示界面！！！"
    ></van-notice-bar>
    <van-form @submit="onSubmit">
        <van-field
                v-model="username"
                name="用户名"
                label="用户名"
                placeholder="用户名"
                :rules="[{ required: true, message: '请填写用户名' }]"
        ></van-field>
        <van-field
                v-model="password"
                type="password"
                name="密码"
                label="密码"
                placeholder="密码"
                :rules="[{ required: true, message: '请填写密码' }]"
        ></van-field>
        <div style="margin: 16px;">
            <van-button round block type="info" native-type="submit">
                提交
            </van-button>
        </div>
    </van-form>
</div>
</body>
<!--引入jquery.js-->
<script src="js/jquery-3.3.1.js"></script>
<!--引入vue.js-->
<script src="js/vue.js"></script>
<!--引入vant.js-->
<script src="js/vant.min.js"></script>
<script>
    new Vue({
        el: '#zfb',
        data: {
            username: '',
            password: ''
        },
        methods: {
            onSubmit(values) {
                console.log();
            }
        }
    });
</script>
</html>